<div class="panel dux-box">
    <div class="table-tools clearfix ">
        <div class="float-left">
            <form method="post" action="{:U()}">
                <div class="form-inline">
                    <div class="form-group">
                        <div class="field">
                            <input type="text" class="input" id="keyword" name="keyword" size="20" value="{$keyword}" placeholder="店铺名称/电话">
                        </div>
                    </div>
                    <div class="form-button">
                        <button class="button" type="submit">搜索</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="float-right">
            <form method="post" action="{:U()}">
                <div class="form-inline">
                    <div class="form-group">
                        <div class="field">
                            <select class="input" name="store_id">
                                <option value="0">==选择店铺==</option>
                                <volist name="storeSearch" id="val">
                                <if condition="$storeId eq $val['store_id']">
                                    <option value="{$val['store_id']}" selected>
                                <else/>
                                    <option value="{$val['store_id']}">
                                </if>
                                        {$val['cstore_name']}
                                    </option>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="form-button">
                        <button class="button" type="submit">筛选</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="table-responsive">
        <table id="table" class="table table-hover ">
            <tbody>
                <tr>
                    <th width="80">编号</th>
                    <th width="*">分店名称</th>
                    <th width="*">电话</th>
                    <th width="*">传真</th>
                    <th width="*">排序</th>
                    <th width="*">上级分店</th>
                    <th width="*">地址</th>
                    <th width="150">操作</th>
                </tr>
                <volist name="storeList" id="val">
                    <tr>
                        <td>{$val['store_id']}</td>
                        <td>{$val['store_name']}</td>
                        <td>{$val['store_tel']}</td>
                        <td>{$val['store_fax']}</td>
                        <td>{$val['store_sort']}</td>
                        <td>{$val['store_parent_name']}</td>
                        <td>{$val['store_address']}</td>
                        <td>
                            <a class="button bg-blue button-small icon-pencil" href="{:U('Store/edit',array('store_id'=>$val['store_id']))}" title="修改">
                            </a>
                            <a class="button bg-red button-small icon-trash-o js-del" href="javascript:;" url="{:U('Store/del')}" data="{$val['store_id']}"title="删除">
                            </a>
                        </td>
                    </tr>
                </volist>
            </tbody>
        </table>
    </div>
    <div class="panel-foot table-foot clearfix">{$page}</div>
</div>
<script>
Do.ready('base',function() {
	$('#table').duxTable({
		deleteUrl: "{:U('del')}"
	});
});
</script>